package com.itheima.service;

import com.itheima.entity.Result;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.Setmeal;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface SetmealService {
    /**
     * 修改套餐
     * @param setmeal
     * @param checkGroupIds
     * @return
     */
    public boolean updateSetmeal(Setmeal setmeal, List<Integer> checkGroupIds);

    /**
     * 根据套餐id查询
     * @param setmealId
     * @return
     */
    public Setmeal findById(Integer setmealId);

    /**
     *查询全部检查组
     * @return
     */
    public List<CheckGroup> findAll();

    /**
     * 根据套餐id查询检查组
     * @param setmealId
     * @return
     */
    public List<Integer> findCheckGroupIdsBySetmealId(Integer setmealId);

    /**
     * 新增套餐
     * @param setmeal
     * @return
     */
    public Result addSetmeal(Setmeal setmeal,List<Integer> checkgroupIds);


    public Result deleteSetmeal(Integer id,List<Integer> checkgroupIds);
}
